import { request } from '@/utils/request'

export const login = (data: { adminname: string; password: string }) => {
  return request<{ token: string }>({
    url: 'admin/login',
    method: 'POST',
    data
  })
}
